package playlist;

import javax.microedition.media.Control;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
import javax.microedition.media.PlayerListener;
import javax.microedition.media.TimeBase;

import function.Mp3File;

public class MP3Player implements Player {
	
	private Player innerPlayer; 

	public MP3Player(Mp3File mp3) {
		try {
			innerPlayer = Manager.createPlayer(mp3.getDir() + '/' + mp3.getFilename());
		} catch (Throwable e) {
			Crawler.alert(e);
			e.printStackTrace();
		} 
	}
	
	public void addPlayerListener(PlayerListener listener) {
		// TODO Auto-generated method stub

	}

	public void close() {
		// TODO Auto-generated method stub

	}

	public void deallocate() {
		// TODO Auto-generated method stub

	}

	public String getContentType() {
		// TODO Auto-generated method stub
		return null;
	}

	public long getDuration() {
		// TODO Auto-generated method stub
		return 0;
	}

	public long getMediaTime() {
		// TODO Auto-generated method stub
		return 0;
	}

	public int getState() {
		// TODO Auto-generated method stub
		return 0;
	}

	public TimeBase getTimeBase() {
		// TODO Auto-generated method stub
		return null;
	}

	public void prefetch() throws MediaException {
		// TODO Auto-generated method stub

	}

	public void realize() throws MediaException {
		// TODO Auto-generated method stub

	}

	public void removePlayerListener(PlayerListener arg0) {
		// TODO Auto-generated method stub

	}

	public void setLoopCount(int count) {
		// TODO Auto-generated method stub

	}

	public long setMediaTime(long time) throws MediaException {
		// TODO Auto-generated method stub
		return 0;
	}

	public void setTimeBase(TimeBase timeBase) throws MediaException {
		// TODO Auto-generated method stub

	}

	public void start() throws MediaException {
		// TODO Auto-generated method stub

	}

	public void stop() throws MediaException {
		// TODO Auto-generated method stub

	}

	public Control getControl(String control) {
		// TODO Auto-generated method stub
		return null;
	}

	public Control[] getControls() {
		// TODO Auto-generated method stub
		return null;
	}

}
